'use strict';

const Controller = require('egg').Controller;

class ListController extends Controller {
    //搜索
    async search() {
        let {ctx,service} = this;
        let {username,classRoom,classNum} = ctx.query;
        let list = await service.list.search(username,classRoom,classNum);
        ctx.body = {
            code:1,
            data:list
        }
    }
}

module.exports = ListController;
